package com.jht.pj.sys.dao;

import com.jht.pj.sys.pojo.Member;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
@Mapper
public interface MemberDao {
    /*用户登录*/
    @Select("select * from member where username=#{username}")
    Member memberlogin(String username);
    /*用户注册*/
    @Insert("insert into member(username,password,createdTime,updateTime) values (#{username},#{password},now(),now())")
    int memberlogon(Member member);

    /*用户找回密码*/
    @Select("select password from member where name=#{name}")
    String memberfind(String name);
}
